package org.neuedu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 科室表
 * </p>
 *
 * @author wangyu
 * @since 2024-11-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    public Department(Long id, Boolean delmark) {
        this.id = id;
        this.delmark = delmark;
    }

    public Department(Long id) {
        this.id = id;
    }

    public Department(String code, String name, String type) {
        this.code = code;
        this.name = name;
        this.type = type;
    }

    public Department(Long id, String code, String name, String type) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.type = type;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编码
     */
    private String code;

    /**
     * 科室名称
     */
    private String name;

    /**
     * 科室类别
     */
    private String type;

    /**
     * 0-无效 1-有效
     */
    private Boolean delmark;


}
